package com.rockcent.mall.lib.repository;

import com.rockcent.mall.lib.domain.UserAdmin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by anti on 2016-08-22.
 */
@Repository
public interface UserAdminRepository extends JpaRepository<UserAdmin, Long>, JpaSpecificationExecutor, UserAdminRepositoryCustom {


    UserAdmin findByUserId(Long userId);

    List<UserAdmin> findByTitleId(Long id);
}

